package com.shop.cereshop.admin.dao.order;

import com.shop.cereshop.commons.domain.order.CereShopOrder;
import com.shop.cereshop.commons.domain.product.CereProductSku;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CereShopOrderDAO {
    int deleteByPrimaryKey(Long orderId);

    int insert(CereShopOrder record);

    int insertSelective(CereShopOrder record);

    CereShopOrder selectByPrimaryKey(Long orderId);

    int updateByPrimaryKeySelective(CereShopOrder record);

    int updateByPrimaryKey(CereShopOrder record);

    void updateAfterState(CereShopOrder cereShopOrder);

    void updateState(CereShopOrder cereShopOrder);

    void updateBatchStock(@Param("skus") List<CereProductSku> skus);
}